fix specs and is_devise? method