added test for last date: #MSG-172 fixed