sh: Add tests for some corner cases of 'case' exit status.