rest api fake test code