rest unit tests