added in test to check postFetch
tidy up of test code