added test for usage of REST API