Feature matching test code