Only install windows bits if on windows
Allow passing block to search
Move tests to modules. Use modules to test both types of searching