Fix func tests performance