Fix/walletfactory formobj toobj tests

This PR includes a new test for the methods fromObj and toObj of WalletFactory