tests.js compiles properly when test/ is modified

As noted by @jtlan, #480 made it so that `tests.js` wouldn't be compiled properly until something in `src/` changed. This branch fixes that problem, so it's recompiled whenever something in `test/` changes.