check for console in the script not the test