Duration function tests