Added test for sort command
Added few tests for search command