iframe fix and tests