The state function should be named `installed` to match the intended state, and to match `pkg.installed`.