Fix breaking unit test

SCRIPT_DEBUG is set to true during the php unit tests, so adding a
filter to let us opt it out for testing purposes.