});

  test('loadFailsUnregistered', function() {
    const handle = new tr.mre.FunctionHandle([], 'Bar');

    assert.throws(handle.load);
  });

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

    assert.strictEqual(
        handle.toString(),
        'FunctionHandle(modulesToLoad=[ModuleToLoad(href="/foo")], ' +
        'functionName="Bar", options="{"a":"b"}")');
  });
});

</script>
