add authentication tests and helpers for signing in