implement authentication with devise and test

Remove when the sign_in method in test helper makes this redundant.