Reworks test for Devise updates from 3.2.4 to 3.4