Added unit test for CFG.js