added e2e test for account add view
made tests a little DRYier by moving login functionality to a function