rewrite test.py with unittest (issue #27)

issue https://github.com/yann2192/pyelliptic/issues/27