fixing testGetKeysAndGetLabels