Adding testcase for tar extraction function.

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>