Some counterexamples about globally hyperbolic spacetimes