Tests' code cleanup.