Adding more unit tests for Resource resource class.