Fix managerlib tests.

Adding dep injection support for the valid product date range
calculator.