Mocha before and validate content