Refactoring tests, using helper methods for signing up and signing in