add tests, lib folder to the consoleapp

@sethladd, add tests and a `lib/` folder to the console app.