Change bare asserts to numpy asserts
Fix assert
Merge pull request #1851 from kshedden/cor_nearest_maint

TST: Cor nearest factor tests