Reinout testcases checkout + automatic test support

- Added script for checking out testcases locally into `testcases/`

- Added support to the functional tests that they automatically recognize this directory.