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

Also fix a warning about matching function prototypes
Is it necessary to type hint if you're declaring a default value of that type?