Test Sequence Validation and Generation using Classification Trees