readded test.js using configs