Extracted getProv object and made simple test for it