fixed old tests to avoid errors on some platforms