added rest unit test