added tests for acquire_lock