Implemented tests for editing a user account details

Rather large commit as I implemented two test cases and did some refactoring for allowing to edit and checking a user in an efficient way
what's the style guidelines for big case classes? I feel like this would be more readable with one item per line, but I'm not sure what the general recommendations are