eliminate assertIsInstance in NN test