Correct unit tests for wallet

Correct unit tests for wallet, and clarify why there is a COIN constant used in the wallet coin selection code.