complete testing for adding key in url