Added tests for cov functions and fixed cov for integer matrices