test fix: getting instance from test factory