0026742: Update test cases for using checknbshapes procedure instead of global variables