'ModuleToLoad(filename="foo.html")');
  });

  test('modulesToLoadMustBeArrayTest', function() {
    assert.throws(tr.mre.FunctionHandle);
  });

  test('functionNameMustBeStringTest', function() {
    assert.throws(function() {tr.mre.FunctionHandle([], 3);});
  });

  test('asDictTest', function() {
    const module = new tr.mre.ModuleToLoad('/foo');
    const handle = new tr.mre.FunctionHandle([module], 'Bar', {'a': 'b'});

    assert.deepEqual(handle.asDict(), {
      modules_to_load: [{href: '/foo'}],
 