lib/console tweaks

- tweaked how lib/console prints stuff wrt whitespace
- added some unit tests for lib/console