Add tests and documentation to the package_tags system