build tests before running tests.
Create dist directory if not there.