Fix a minor bug in createSubBuffer tests