added test for inDebug