Rule.py: Added tests and made rules callable (executes the function