Fix failing test, caused by class not being marked final.