Merge pull request #50 from carlosmartineztoral/v1-train

Added test #5976
Added tc #6046