Unit tests for auth on #95

closes #95... again... fixed... unit tests look good for now too