updated test to be runnable in Dart2JS