write tests for layout and view templates #171
remove tests that no longer apply to view #171