adding devise key
fixing tests