add dynamic rules testing.
Merge pull request #31 from hansode/dynamic-rules-testing

add dynamic rules testing.