Moved tests.js from src/ to test/ directory