adds testing of dist code