fixing client
adding exit status on failed tests