Added test code (manually modified) but it runs.