Add unit test for #164