tests for resource functionality