Added a item-replace test & a bit more logging