Implemented rest of the test cases for Gadget.search