Add test for HALFYEARLY due date generation and updated the generate
function.