Update testing support and add unit tests for existing resources