Unit test for #177