Fixed #21175 -- Abstract base model class fires class_prepared signal

Created test for class_prepared signal and reconditioned abstract
base model class to send class_prepared signal.