Add ko graph unit tests