Testcoverage specific authentification , refactoring