Impplemented quering with test
Updated gem name in woringn messages
Fixed expected exception test
Impelemented defaults