Added tests to PostSolutionActivityTest.
Added javadoc comments.