Add test demonstrating a problem with const removal.
Fix that test.