Fix tests fails round off error

#376  fixed these tests for (presumably) numpy 1.9, but it broke them for older versions. This PR hopefully solves the issue.