Fixed keyname in error and fallback to object callback
Added tests for .getWalletApiUrl()