Added basic mocking support

Still need to get rid of duplicate configuation though