test(emulated_factory_function): added test that shows that #1 works