Issue 179

This PR should solve issue #179. The detecting rule and a test are added.