The Retail Price Index and the Cost-of-Living Index: testing for consistency in theory and practice