Fixed rule testing

Fixed:
* Rule is now being saved before being tested