refactored view tests to consolidate the user creation and login steps in the base tests