enabling rule tests
correct the logic
make sure test exit with error code if their are errors
Merge branch 'master' into travis-rules-test
Merge pull request #397 from jrossi/travis-rules-test

enabling rule tests