Introduced global variable for testing.  Added a couple of tests.