Take test id from testData instead of window.location.