added unit tests for correlation functions