Refactors testing setup to own functions
Adds first green authentication_test.js