added some basic unit tests for search