Added junit tests for various activities.
Merge pull request #17 from knotsoftware/testing

Added junit tests for various activities.