added api verison, removed url hardcode in test