Added tests for year, month and day field lookups.

Refs #165.
Implemented year, month and day field lookups.

Refs #165.