cache functions passed unit tests