fix BuildCubeWithEngineTest issues