added new demo and tests for it