RestCollection tests and fixes