The test is of the system function in libc, not of the entire system including /bin/sh. So a change that makes it less sensitive to the vagaries of whatever /bin/sh might do is a good change. Testing the behavior of shells is a worthwhile thing to do of course, but it's outside the scope of libc tests.