I can't explain why, because it doesn't make any sense to me, but I just added a var in front of uPair and it fixed everything.
So, instead of uPair = await getPairContract(uFactory, token0.address, token1.address)
It's notnow var uPair = await getPairContract(uFactory, token0.address, token1.address)