Adjusted test code for NBT.