Fixed unreliable test