test($resource): add spec for dataKey feature.