Unittesting for Graph class