Test automation identity

Hopefully final test for identity to change password. Also a small potential fix for flakiness of facebook signin and some refactorings.
According to Rob, using a tuple is appropriate if it is for a one time thing and this is a very one time thing. Does not make any sense to create a case class for a temporary construct.