Fix impl and test for setting default retention policy