added some unit tests for payload parser off-by-1s