Tests for raw transactions argument checking. Copy from 2d43f88e1fbccf5b03db12a40567c5ef40029173.