Added testing system for multiple rules in test.hs.