fix(integration test) use count instead of isPresent