Unit tests for negative and perfect correlation