test case for test coins works correctly