Fix mock user store so that it's behavior matches the real one.