REST unit test dev.

Signed-off-by: salomax <salomax@salomax>