bug 945748 - PageMod.contentScriptWhen tests

test that the PageMod is attached at the right time, depending on the
contentScriptWhen option value.