More tests and regression fix

* More tests for CentralAuthUser
* Fix sqlite regression found in testing

This was formerly If15b41c9a52aa1bc795bd6c8de55f58be202a13c

Change-Id: Ic8d00df3eb39b00381ab3c3ece0e20c3ed133188