add rule test

tests seem to work