Added a (more) complete test suite and added OS X guard notifications