Added tests
Fixed lot of bugs in CPDateFormatter