fix test-case vs devise vs rails 4.2

should solve #23 and #32 

@rafaelfranca @walterdavis @guigs