Fixed the coins method and added a test case