Add tests for `spaces` and `tok`