Add test files and rename autometa.js to index.js