Class violation testing