Only try to run the tests if the mocha div exists