Add tests for registering class based views