creating a test to Strategy and DateComparator refactored