modifs in test case and lib/main.js