Re-enable warnings when compiling tests (!) and fix a few.