Added new tests reproducing #1.