Add expect syntax to spy tests