minor refactor in livestatus tests
Test 2.6 compatibility for test.py