Added a test (and demo file).