rest : small fixes / tests : improvments