Add spec to check error logging during object copy