test function for update pass