adding JUnit test for system config, fix of SQL foe  system config