added cmsapp hook, added Cient() unit tests to test views, fixed test ROOT_URLCONF, pep8 fixes