Add a generic CRUD base test and port the existing test to it.

Hopefuly this makes it easier to test future resource types.