rename todatetime to totimedelta on Duration.
added some tests for the same function
closes #4