Validate the device token length. Otherwise the frame can be sent with an incorrect length.
Fix tests after device token length check.
Merge pull request #27 from tstranex/master

Validate the device token length.