fixes#2752 and change instances for test method