Refactored, parameterized const_source test.