[WIP] Add tests to detect negative cycles

- [ ] 100% coverage

Depends on #87