add safe mode, write concern (w, j) and write command options to all tests