example for arbitrary test function