testing rest api functions