Improved whitespace token test