RestAPI unit tests