add some test code for readers-writers solution