Add unit test for #280