Remove duplications in tests