Add unitest script for the RESTFul API