Assert added to rules generation test