Adding optical flow test.
Fixing up optical flow test.