test case for #195 and #196