Add test target and change the unit tester to take output file as an argument