test helper: workarounds for mocha / activesupport incompatibilities