this can be avoided by opening the box before you pay the guy.
the courier guy is used to this because it is your responsibility to check the goods before paying for them. If they are bad DO NOT ACCEPT THEM.
easy.
for auspost COD you MUST pay before you get the item, so you have no way of checking