Bug 815283 - Tests for bug 58713, bug 536248, bug 740617. r=mconley