Add a test suite for infer.