removed duplication and filled in remaining test_views stubs