Test automation identity

The test involves creating a user, and then changing it. Also did various refactoring, added config etc
indeed, it would be better to have a getSecureCookie method instead of this one