POST service request implemented
Added some null pointer checks and test adapted