Locks tests housekeeping