Fixing Some Bugs in the Tests

There were a couple of Dart => JS conversion bugs in the tests. This set of changes fixes those up.