authenticate + test
beter debug output
Merge branch 'feature/issue-3-authenticate' into develop