Allow ref() to be stubbed (no more parameter to mock())
Shorten util function name