Issue 382

I added rules and a test to solve Issue #382.