Test automation identity

The test involves creating a user, and then changing it. Also did various refactoring, added config etc
I like this usage of case classes, it makes the code much clearer!