Add sun component test for state change