Adding unit tests for resource listing