test: utils: use get_content_box() rather than get_allocation_box()