ls: fix a test failure that should have been skipped