ugly hack for making tests run in dart2js