Added client program from project website, all error cases work
correctly