added rest api tests