- refactor date setter, added tests