Add test for getting year pairs