Merge pull request #12 from gsegura/master

add code to support rules in automated tests