added basic tests for ReadWriteLock.