fix typo in building nested test conditions