Test devise

Add tests for Devise