added some unit tests and started the POST and PUT for the client