SearchPanel: fixed bug, added constructor + test