Added test covering slug whitespace trimming