MAINT: Cor nearest factor tests

Change bare asserts to numpy asserts.