Theme unit tests and null checks