Add tests for resource server