added Final tests for Resource class.