[TASK] Refactor tests to support testing compiled javascript