More rigorous testing of createSubBuffer with invalid arguments