Refactor: do not import Lock directly
Test unable to lock sr situation
Further tests on Trim
Merge pull request #2 from matelakat/CP-8744-trim-testing

Cp 8744 trim testing