fix to ignore .test.js files and add tests only in tests mode