Added unit test, improved usage example

Refs #7860