Add tests for ConsumeWhitespace.
Fix bug with empty token slice.