added response write to search and url parameter to test