mutex for fun
clean test code