tests: Add missing finish() and a title in insertBefore content test