Added unit test for nested rules.
Merge pull request #37 from fubhy/add-nested-rules-test

Added unit test for nested rules.