Add a test for the Windows-style paths fix

The `replaceWith` method includes a dirty fix for Windows-style paths
appearing in the HTML build directives. This adds a test for that fix.