Passed test for coin return.
Added test for persisting credit when invalid coin is entered.