Merge pull request #49 from roydude/v1-train

V1 train
Added test #5976
Modified tc #5976
Merge pull request #50 from carlosmartineztoral/v1-train

Added test #5976
Removed deletAllThreads from 6059 (not required).
Tidied 6046 a bit.
Do not bother deleting all threads before 6037 (not required).
Do not bother deleting all threads before 6031 (not required).
Do not bother deleting all threads before 6024 (not required).
Do not bother deleting all threads before 4708 (not required).
Do not bother deleting all threads before 4703 (not required).
Do not bother deleting all threads before 4700 (not required).
Do not bother deleting all threads before 19421 (not required).
Do not bother deleting all threads before 19420 (not required).
Do not bother deleting all threads before 19193 (not required).
Introduced '_RESTART_DEVICE' for tests which need an empty sms threads list before starting (to get around bug 879816).