added discrete-dist-error
add basic tests