Add tests for canonical cleaning.