Port email change test to rails integration

This is a second pull request (after #140 and #141) for porting cucumber features to rails integration tests. This change ports the email change feature.