Update and add more facilities to test.h.in
Update and add more facilities to test.h.in

* Check for type equality in compareMat
* Add compareMat overload to compare Mat with scalar
* Add generateRandomImage() with an overload
* Add generateRandomVector()
* Add setRNGSeed() for compatibility with OpenCV < 3.2

taketwo/radical,taketwo/radical,taketwo/radical