Test automation identity

Hopefully final test for identity to change password. Also a small potential fix for flakiness of facebook signin and some refactorings.
I'd tend to use tuples for short intermediate things. Probably more appropriate to define a case class in this instance given its the return type of a method that could end up being used in multiple places.