testing class-based views