Added unit tests for the refresh functionality
Merge pull request #2 from matthewbdaly/master

Further unit tests