remove duplicate import
skip tests if opt dependency aren't available.
Fix another test when floatX=float32.
Add debug info.
Work around strange astype() numpy behavior.
better comment.
Merge pull request #1906 from nouiz/tests

fix tests