Format the test command when executing it.

This will allow the users to make use of the internal variables.