An approach to testing the goodness of fit of incompletely specified distributions