Added test for service container factory and console application.