[REFACTOR] Separate test.js into different files