MDL-39478 behat: New constant to detect when the test site is running

Also removing an unused var and method.