Added test_locks tests, to test the asynchronous locks.