Snip trailing whitespace.
Use TEST_COOKIE constant instead of hardcoded wordpress_test_cookie key.
Don't allow empty variant delimiters.
Clean up EOF area.