Write a less fragile test