Added some checks to the configuration file reading, fixed testpan2