Move tests related to views files into views/tests.
Remove unused methods.
pep8 cleanup