change endtest functionality
support client manager in test end
new cat lib