Testing using yield