fix key observer tests