cache re test function, use Date.now()