Tests improved

* move rules related tests to a separate subdirectory - ``/tests/rules``
* each rule should now have a separate file with tests definition