Adding test for discover command