minor edits, add cor.test example