Fix bug in sanitizer tests, closes #304