Update testing code