improve tests
fix learn substitution response