test for perfect negative correlation