updated test to be runnable in dart2js