Add unit tests and fix Customizer sanitize callback checks