When copying a hash, pass the api through to the new object
add test to verify api is being copied in hash