Fixed a bug in the NL/365 day counter; added unit tests for day counters