Fixed incorrect removal of last day of February for non-leap years. Added tests