Fixes #5929: fix nbsp test