wallet core unit tests