fix bug and create test for bug pushToken