programmatically detect whenever test run is in debug mode

NoSuchKey