add some test coverage to API views