Unrefs loop in tests

Change-Id: Id0df3d3817147bb9ed850ac991e9997bcc37d877