Prepare tests and dist files.