Add a test case for the automatic refresh also