Refactor test

- Refactor test/*.js
- Output coverage (using blanket)
- Create makefile