Added covariance and invariance tests for im/mut hashes. Did requested cleanup.