made config private and fixed broken test