Fix/1771

fix for issue #1771
added bonus is a new spec for the ruby filter.