[test] ensure factory is called asynchronously
[fix] ensure factory is called asynchronously