Actually, it was the unit test that @lefnire wrote that helped me to diagnose the problem.