Implemented tests for violation class.