add tests, lib folder to the consoleapp

@sethladd, add tests and a `lib/` folder to the console app.
We should encourage `>=lower <upper`