newInstance added in resolve

+ unit tests