Use path.join correctly in binary finding test. Refactor test