Add unit tests for refresh command
Include pull command source in refresh command