TST: started to get some testing in for the rest api, #amidoingitwrong