Feature/auth tests

Closes #93