added test_client, extracted rw_spinlock