build purge rule repository tests