set succesful and coin-does-not-exist cases + add docstrings