Refactored measure setup in tests to generate JS dynamically from measure JSON fixtures