Added some tests to the Rules component