converting iframe-test to mocha/chai (not yet passing)