test cases now works
added _search functionality