STMAdapterResources unit tests. Fixed some Rollback logic in STMAdapterResources, and cleaned up some of the unnecessary function parameters.