Marked some tests skipped if directories mismatch.

Strangly on my machine the function tempnam returns something
different than expected.

tempnam('/foo', 'bar');

returns a file located in /private/foo. The way this test works
does not allow this behaviour. This is why we test this condition
and mark the test skipped.