Test Factory rest step definition