dry up some test code with sign_in helper