add document absoluteUrl tests
Fix problem with absolute urls

Fix #322