Add simple lock tests