test error inheritance