Fixed some unit tests and added missing cfg file