Remove Repository command_flag and Build target_name

Command flag should not longer be used and `target_name` only existed to support command_flag.

If you are using command flag, you should add the flag to your Repository's `test_command`.

to: @nolman