Fix tests and remove warnings.