added adj matrix test