Fixed a bug in a month computation
additional unit tests