added rtc test code