improve mocha before: support multiple args, detect non-function args and fail