Add proper asserts in account chooser API.