test code for Issue47