Better test coverage for lib\build.js