Update and improve tests for generic REST resources