Fix API auth tests, add API view tests.