added some tests to datetime and dateinterval functions