added regression test for #51
regression test for #51 passes