refs #4691 added more example tests and fixed a bug found because of the tests