added substitute functional for core-tests