unit test for #2