add lock tests