See DRIVERS-1319 for updated details.
NODE-2683 Add a bson corpus test with invalid type for $code when $scope is also present