Build chai-things for unit testing
Client tests and fixes