Added functional tests for date archives. Fixes #4