Add a unit test to avoid regression on bug #70