Fixed Linux unit test problems