Changed testSort input check
Added search test for wrong inputs and no match