Add tests for pkg.installed with version specification