Test for calculating diff in timestamps