refactored tests.
migrated old dates class usages to new joda date time methods.
Dates and Conditions classes removed.