Adding functional tests for year