Use RequestFactory for testing view