fixed tests for rest adapter