Moved accessor constructions into a test function to ensure coverage