modify ns search function
add NSSearch test file