BUG: tests should use almost_equal for comparing float equal