Added Framework for teseting locks
Fixed testing framework to run correctly