Fixed test case.
Added script that sets up tmp to be ready for testing by running make in it.