Add JUnit Tests for Violation algorithm
Small changes