changed assert to check object instead of ID; removed dependency on other object methods