Providing test function factory or test function explicitly