[test] ensure factory is called asynchronously