test: use type for message compare target