Fixed bug in Gabor covariance when mode is self-test

When self-test was called, x was none and (n,D) = x.shape would throw an exception.  it is fixed now