Updated examples to use HttpRestClient
Reworked UserTest into unit tests