fixed breaking unit tests; corrected oldest acceptable date calculation