Update testing func