DRY up the HTML render tests

Along the lines of 85d4bdd but for the HTML render object