fix date format unit tests
refactor after code review and update protractor tests