Extract and test holdings helper.