test for issue 177 & 178