Fixed search test and init functionality