expansion of tests to cover html5Mode and non-html5Mode, and to cover link creation methods
add server path tests and fixed a couple of related bugs