Refactor sanitation test