Add some simple test cases for discover