Added test for fix to #170