Rule set test

test is ok, please check it out and merge it.