Removed a no longer valid test code (and fixed some warnings).