Fixed buggy test