move student and teacher specs to shared examples