unit test for #2

as discussed in the ticket