minimize well testing cost