fixed an issue with not bering able to call real function (w/ tests)