ensure discovery does not throw error
fix unit test