Add a test from the opencv source