Fix bug with test