gateway test match by id passing