add undirected graph tests and fix ctest setup for cmake