Adding tests for "Resource" class.