added tests for Lock methods