add get_distribution(), add distribution file tests