add test for invalid engine_id