Add a test for custom API views