fixed fdim test