fix customformat bug but broke injection gzip/csv test
refactoring on injection-test.js file: splited into 2 files
refactoring on test files