Fix bug in test: remove square brackets from string assert