The reason its been added here is because all tests are doing a login as user2. So in before method we add a login as user1 to make sure the default user is user1 unless the test explicitly changes it.