It's pretty obvious from the way she was covering the name but Yamada definitely knew they switched shirts when she put it on, and was definitely giving the shirt a sniff. There's a lot of theories that people who are more compatible tend to enjoy each other's scents (no I don't mean weird stuff either).