Implement ProxyFactory#createInitializer() and add some tests