Fix engine unit test