Added test for preserving extra query parameters in links