Fix error in engine tests