tests: fix test_commit() for case insensitive filesystems