Avoid deprecation warning (fixes #27)
Speed up the test