Add dir and rtc cases for open. Move rtc test functions to testing files