removed superfluous brackets and added test for absolute base urls