Implements the function
Finishes implementing date add function
Refactors range tests to remove repetition