add test code for fix #1