Implement devise with testing.