test code for issue #2