refine bandwidth test, use function ptr.