added some resources. added testThreadSafety test method