add rule testing