Unit test game engine fixes