Revert "debug output for phantomjs"

This reverts commit d67d3c6dd2bc0d2c797c3ba77598080e74f6393d.
remove explicit test for non-test-environment (our CI runs in test context)