Add condition var and test source code.