Fix tests for nose_discovery function

Unit tests for nose_discovery function have been fixed so that it new
support new logic.

Change-Id: I8552c3cdcfc2d15a7f98c21ff26e6327161531b5