Added more unit tests for StmAdapterImpl. Fixed PowerMock duplicate classloader issue.