added unittests for datetime parsing