Add test code to send GCM message to device
Correct spelling mistake
Add duplication check code