Corrections of unit tests.

- replacement EXPECT_DEATH by EXPECT_THROW where xprintf method throws
error