Testing sanitizers

Add support for sanitizers and such in the testing infrastructure.