Fixed signature tests and removed a few compile warnings.