started working on tests
added tests for REST API