Unit test tempfile - add more test cases

The two commits in this PR originates as a followup to issue #1432. I wanted to add a test case or two to detect the issue. In the act of doing this, I realize a few more test cases of a similar nature could be added. Also, I added a test to directly verify temp directory deletion.

The new test cases are mostly concerned with testing two successive calls of gettempdir or tempname, and when the calls are interrupted by deleting the temp directory, or by doing the other operation. For example,

1. gettempdir, gettempdir
2. gettempdir, deltempdir, gettempdir - 'internally' delete temp directory
3. gettempdir, lfs.rmdir, gettempdir - 'externally' delete temp directory
4. gettempdir, tempname, gettempdir

Test case 1 appears in the original unit test, which is a check for idempotency.
Test case 4 checks for any side effects between gettempdir and tempname.
Test case 3 checks for #1432 and is to be compared with test case 2. Test case 3 is written to succeed, although it should more naturally fail, if it wasn't for the performance hit that will occur (see comments in #1432).

A similar test sequence is repeated for tempname.

Roughly speaking, the first commit re-expresses the original unit test with shortcut aliases so there is less verbosity. The first commit also merges two of the test cases into one. The second commit adds the extra test cases.
I've converted some of the ok/notok assertions to eq/neq ones. These are ones in which there is an explicit comparison of an expected value with an actual value. For the remaining notok(something) assertions, I've converted to using ok(not something). I'm going to continue using ok for the remaining assertions.

I think it's very useful to have ok(something) as a synonym for assert.True(something), where something is typically a function implementing a predicate. In Perl, ok is often used for unit testing (see the Perl CPAN module, Test::Simple or Test::Simpler).