Tests for spaces inside square bracket support

Introduced but not tested as part of #235.
Closes #126.