Support Celsus_TestCase and fix reference iterator