added test for overlapping rules