Tests

- Adds tests to util/*
- moves `log.js` to util/