FIX Raise ValueError when the target does not match with classes
TST Added NRT to test if ValueError is raise during target mismatch