refactor test for signup process