tests for REST API