[finishes #53934269] jasmine-ci command returns non-zero exit code on error

Separated TestServerThread to top-level class for testability.
Bring back 2.6 and 3.3 support