Fix two tests that were broken for older numpy versions.

This (hopefully) fixes the issue.
Automatic style corrections courtesy of autopep8
Merge pull request #377 from francisco-dlp/FIX_tests_fails_round_off_error

Fix tests fails round off error