test and example with loop and volume

a simple test to pass with the new parameters, and a new example showing
the use of loop and volume parameters.