Test case for HTMLUnit issue 1663

Test case for https://sourceforge.net/p/htmlunit/bugs/1633/

Related to pull request HtmlUnit/htmlunit-rhino-fork#3