This commit adds a button renderer test and fixes a couple of issues found when working on the test [MAILPOET-5644]