use eq matcher instead of be

perhaps they can't be `be'
add context to make the given source code valid