Start to write test.
Now Rule supports Pattern.
Add namespace support for Rule.
Add test cases.
Merge pullreqeust branch to support namespace for Rule.