fixed code coverage for test.test.js