correct dir_returns_resource_attributes test