Improved sapegin test