bug 679: add respective unit test