adapted test to mod2pi