Fix for python3. Python3 adds more objects to datetime.
Changed the test case to test for a simpler scenario.