added rule and unit test

this should solve issue #122