Added bunch of tests for console application.