added replace functionality in dummy interface for test
added assert if replaced refobj is realy replaced