Fixed _dist_const
Fixed fu and trigsimp
Minor test changes