added tests for lock objects