engine-rest: fixing tests