Added and tested the homography check