make a test for rwlock