Reorganize period policy tests.
Convert return type of GetNumberOfPeriodsInYear() from int to double.
Add CustomPeriodPolicy.