Add tests and logic for assigned HTML element to planet