add investigate testing function