fixed test cases for OpenCV 2.4