add a test for #174
fixed #174