Test for bug 935994 r=jwatt,bas