Add targets test-* and build-* for each product-* target, only re-run tests on change

This test target doesn't work as expected. It appears to only run the tests if one of the test JS files change, rather than if one of the webodf JS files change.