added test to cover issue described in #228