added unit tests for Guard
Merge pull request #16 from bastiaan89/add-tests

added unit tests for Guard