Tests for substitute.