Converted run tests to JS - all tests now in JS