Test automation identity

Hopefully final test for identity to change password. Also a small potential fix for flakiness of facebook signin and some refactorings.
would you use a case class here @robertberry ? or tuple is just as clear?