Updating max payload size to new 2KB limit and adding category field in the payload.
Validate the device token length. Otherwise the frame can be sent with an incorrect length.
Fix tests after device token length check.