closes #346 - emit a warning when trying to use casper.test in non-test env