Fixed a bug where tests were not starting due to an undefined error

At random times, the tests would throw an 'undefined' error and wouldn't start. Me and other colleagues had to keep refreshing the page multiple times until the tests would start, which was annoying and counter productive