Added test to verify output.