changed function tests