use updated expect() and hash syntax