adding test
Fixed #197.