Further tests added. Further corrections made to DateTime code.