MDL-41030 Behat: Add JS Unit testing for the JS tracking functions