Add test case for new AUTO_PDATE function