added autofac and some unit tests