Corrected bugs in unit test.

Executable bit was tested on the wrong file, when
determining if test was to be skipped. Also, the
test number in the SKIP_TESTS variable was wrong.