add a main function
add another test with the locking part of the fn isolated