Change unit tests for Command class to not use reflection