issue #177 - almost done fixing client-side examples and unit tests