Added basic unit tests to some analyzers.
Cleanup of test functions.
Merge pull request #173 from workhorsy/tests

Unit tests for analyzers