[TASK] Add tests for searchByKey - Closes #11