test for coin