Tests for issues #224

These are the tests for issue #224