clean up
added REST API unit tests