Add tests and atlas.js