Issue 12

Add test cases for a enum rules. Everything works fine.