Fix missing comma in test/test.js.
Increase test coverage.
Ensure error objects from iframes are tested.