Updated tests to work with new referer URL components