Add rest calls including unit tests