add test for file.js