Test and fix fann_create_train_from_callback