Added more tests to refresh interval feature. Adding better error checking.