fixed create new run test, was logging errors as it was dealing with an undefined object. Also fixed polling to happen when there is a test running