make the testing framework more robust - and print CPB