fixing onfiguration
added test