Fix account generator unit tests

The account generator unit tests patch the set_auth method,
however they do so in a broken way, by setting the return value:
- set_auth does not return anything
- the return value is set to a function

The only reason the unit tests work is because set_auth is actually
not invoked during the tests. So cleaning all this up.

Change-Id: Ied02c38b6a54aad2666abdaed16e454f5c7e65d1
1 file changed