Added a test for BaseElement.sanitize and built out class to pass.