Fix a bug of getMonthLength()
Add test cases for getMonthLength()
Use four spaces as the unit of indentation.