Full test coverage for API views
Wrote a unit test to reproduce #15 and got it to pass, so that might be fixed?