Add some tests for API resources.