Implemented testing for Chain/StackChain with Arc<Mutex<T>>