Tests improved

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