Add ignore file for test dir.
Make tests script generate .out files.