fix test to really get last day of the month and not the last day of previous month, making the test pass reliably