Changing the TestGraph adjlist format and fixing showExceptions bug