Tests for console application. Relates to #11.