Changed assert_array_equal to assert_array_almost_equal where necessary