I edited your post to be more readable.
In the future, please minimize your code to just what is needed to demonstrate the problem. Please provide details on the versions of Maui and the target platforms your have the problem on, as well as a clear explanation of the repro steps, expected behaviour, and actual behaviour.
It's much easier to help you if we know where the problem is that you're asking for help on.
I suspect that you would like ImageButton's Command to trigger the Test RelayCommand, but it's not because the Command isn't connected properly. It needs to bind to the TestCommand rather than being set to a string.
Something like:
<Button Text="Execute test command"
Command="{Binding TestCommand}" />
Please see the Maui Commanding documentation for a full overview of how Commanding works.
If you need more explanation, please edit the question to clarify more clearly what you're doing and where you still need help