added test cases for #81
actually the correct test case for #81
added iOS token generation, #81