test for timeAgo function