Add some unit tests for the game engine