Building unit-test for REST-Server