changed tests to assert_almost_equal instead of assert_equal