add test and distribution scripts