add test for bug #52, which was fixed in 7b74e6364c12e97aa436ce5d90729247387f4523