Allow attributes to be changed on resource mocks