Block test using yield and method argument