compare and swap 'tested' on repl