added CNN unit tests