TST Fix test. Increase coverage

Coverage picked up that the sobel test was not really meaningful and
some lines in shape.py were not being covered.