clean coded ActiveviolationTypesRepository, fixed ValidateTest and added
some new testcases