Add debug / test mechanism
Enable debug in TestCase