added rspec test for devise controller and Fixed #2