Fixed getting time twice in test

Times were being fetched twice, should only be fetched once.