Add regression test

For #144