Bug 975359: test cases. r=jgriffin, f=slee