Unit test for game engine