cnn unit test