I wonder what makes a venomous snake decide to bite, but not inject venom.

Are they just sort of exploring and trying to get a better feel for what catches their interest?

I've heard of sharks doing something like that, a test bite of some kind.