added training thread integration test
merge commit