Fix temp file writing

The README had an incorrect app armor config.  One of the negative tests
was passing because the test program failed, but failed for the wrong
reason.  It's now tightened up to check that it is failing for the right
reason.