working on writing tests for REST API