Add test for type matching