Add a function to determine if a global flag is set.
Add additional test
Merge pull request #146 from jhowarth/master

Add a function to determine if a global flag is set