fix namespace counting error in test