BUG: Add check for same type
TST: Fix tests for test_ne