Adding unit test for ComponentReturningRunMode - TODO Fix unit test