fix buggy test