Finish unit tests coverage for js REST Client

Fix for EZP-21199: Finish unit tests coverage for js REST Client