Fix duplicate test bug