rake task for tests and game state_machine reorganized