Correcting test-cases with corrected lock check (should have been asserting !locked?, not locked? in case of unlock check)