Add C method to silence train.
Add test methods for library train method.