Make tests depend on the current version and remove warnings.