VID-1953 Make the unit tests fail with a better message

Also fix a warning about matching function prototypes
The 'array' keyword requires that if a value is passed for $options it must be an array (and not, say, an integer) while the second '[]' says what to use if null is passed.