Added tests, but can't get sign-in to work in test