Add tests for `calculatePercentageComplete`