move test/ to root, cleanup index.js