Compile tests with AddressSanitizer
Fix potential buffer overruns
Update essay