fix some assertion and CS in schema manager functional tests