bug fix: added instanceId parameter to MockInstance