Add a test to ensure that constructor expressions are not duplicated.