add a few more rest api methods along with some more tests.