Multiple times in read_pref_cmd.js, the test marches forward assuming commands worked without actually verifying that they work. This can lead to race conditions and unlikely bugs, especially on slow machines.
These lines in particular need to be changed as part of the linked BF, but we should add the assertion to other commands as well.