Fixed tests on devise < 3