Simplify and fix test.
Update coin libraries.