add a unit test, trying to reproduce #15