Add test cases for drule module